package com.hrm.service.impl;

import com.hrm.dao.EmpWelfareMapper;
import com.hrm.dto.EmpWelfareDTO;
import com.hrm.service.EmpWelfareService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Auther: 朱晓龙
 * @Date: 2020/6/1 21:12
 * @Description: 员工福利管理服务接口实现
 */
@Service
public class EmpWelfareServiceImp implements EmpWelfareService {

    @Autowired
    private EmpWelfareMapper empWelfareMapper;

    @Override
    public List<EmpWelfareDTO> empWelfareList() {
        return empWelfareMapper.empWelfareList();
    }

    @Override
    public boolean updateWelfareInfo(EmpWelfareDTO empWelfareDTO) {
        int updateLine = empWelfareMapper.updateWelfareInfo(empWelfareDTO);
        return updateLine != 0;
    }
}
